x86: Make offlined CPU enter deepest C state
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 11:11:19 +0000 (11:11 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 2 Mar 2009 11:11:19 +0000 (11:11 +0000)
commit3b38f56731426881f5f8f5c07d22ffcd12760d9a
tree14fc07a67aa8cbab4ed7992b656c936eefe202e5
parentf70473e487d45b9f5a9db77cef8f737b679f253a
x86: Make offlined CPU enter deepest C state

Before cpuidle is introduced, offlined CPU only enter C1 (by HLT
instruction). This is not optimal since C2/C3 can bring more power
saving. Since now cpuidle is introduced, it is time for offlined CPU
to enter more deeper C state.

This patch add the logic to make offlined CPU enter deepest C state,
if cpuidle is enabled.

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Wei Gang <gang.wei@intel.com>
Signed-off-by: Tian Kevin <kevin.tian@intel.com>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/domain.c